<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">
		<link rel="stylesheet" th:href="@{/airent/plugins/bootstrap/bootstrap-4.4.1-dist/css/bootstrap.min.css}">
		<link rel="stylesheet" th:href="@{/airent/common/css/nav.css}">
		<link rel="stylesheet" th:href="@{/airent/css/issuepost.css}">
		<link rel="stylesheet" th:href="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/css/fileinput.min.css}" type="text/css" >
		<!--    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" crossorigin="anonymous">-->
		<link rel="stylesheet" th:href="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/themes/explorer-fas/theme.min.css}">
		<link rel="stylesheet" th:href="@{/airent/plugins/other/animate.min.css}">
		<link rel="stylesheet" th:href="@{/airent/common/css/footer.css}">
		<link rel="stylesheet" th:href="@{/airent/plugins/jquery-ui-1.12.1.custom/jquery-ui.min.css}">
		<!-- Bootstrap core CSS -->
<!--		<link th:href="@{/asserts/css/bootstrap.min.css}" rel="stylesheet">-->

		<!-- Custom styles for this template -->
<!--		<link th:href="@{/asserts/css/dashboard.css}" rel="stylesheet">-->
		<style type="text/css">
			/* Chart.js */
			
			@-webkit-keyframes chartjs-render-animation {
				from {
					opacity: 0.99
				}
				to {
					opacity: 1
				}
			}
			
			@keyframes chartjs-render-animation {
				from {
					opacity: 0.99
				}
				to {
					opacity: 1
				}
			}
			
			.chartjs-render-monitor {
				-webkit-animation: chartjs-render-animation 0.001s;
				animation: chartjs-render-animation 0.001s;
			}
		</style>
	</head>

	<body>
	<div th:replace="~{commons/topBar :: topBar}"></div>

		<div class="container-fluid">
			<div class="row">
				<div th:replace="~{commons/sideBar :: sideBar(activeUri='emp')}"></div>

				<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
					<h2>Section title</h2>
					<div class="table-responsive">
						<form th:action="@{/house/examine}" method="post">
							<label><span class="STYLE3">审核状态:</span>
								<input type="text" name="examine" th:value="${examine}">
							</label>
							<input type="submit" value="搜索">
						</form>
						<table class="table table-striped table-sm">
							<thead>
								<tr>
									<th>编号</th>
									<th>所在地区</th>
									<th>具体地址</th>
									<th>小区名字</th>
									<th>出租类型</th>
									<th>房屋面积</th>
									<th>房屋类型</th>
									<th>房屋租金</th>
									<th>发布时间</th>
									<th>房屋状态</th>
									<th>审核状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<tr th:each="e:${pageInfo.list}">
									<td th:text="${e.houseId}"></td>
									<td th:test="${e.houseArea}"></td>
									<td th:text="${e.houseCity}"></td>
									<td th:text="${e.villageName}"></td>
									<td th:text="${e.rentType}"></td>
									<td th:text="${e.houseMeasure}"></td>
									<td th:text="${e.houseType}"></td>
									<td th:text="${e.rentPrice}"></td>
									<td th:text="${e.houseState}"></td>
									<td th:text="${e.examine}">sit</td>
									<td th:text="${#dates.format(e.rentDate, 'yyyy-MM-dd')}">dolor</td>
									<td>
										<button th:onclick="|yesUpdate(${e.houseId})|">审核通过</button>
										<button th:onclick="|noUpdate(${e.houseId})|">审核未过</button>
									</td>
								</tr>

								<tr>
									<td>
										<div>
											<span>当前<span th:text="${pageInfo.pageNum}"></span> /<span th:text="${pageInfo.pages}"></span>页  总计 :<span th:text="${pageInfo.total}"></span>条</span>
											<button th:onclick="|go(1)|">首页</button>
											<button th:onclick="|go('${pageInfo.prePage}')|">上一页</button>
											<button th:onclick="|go('${pageInfo.nextPage}')|">下一页</button>
											<button th:onclick="|go('${pageInfo.pages}')|">尾页</button>
										</div>
									</td>
								</tr>

							</tbody>
						</table>
					</div>
				</main>
			</div>
		</div>

		<!-- Bootstrap core JavaScript
    ================================================== -->
		<!-- Placed at the end of the document so the pages load faster -->
<!--	<script th:src="@{/airent/plugins/jquery/jquery.min.js}"></script>-->

<!--	<script type="text/javascript" th:src="@{/asserts/js/jquery-3.2.1.slim.min.js}" ></script>-->
<!--		<script type="text/javascript" th:src="@{/asserts/js/popper.min.js}" ></script>-->
<!--	<script th:src="@{/airent/plugins/bootstrap/bootstrap-4.4.1-dist/js/bootstrap.min.js}"></script>-->

<!--		&lt;!&ndash; Icons &ndash;&gt;-->
<!--		<script type="text/javascript" th:src="@{/asserts/js/feather.min.js}" ></script>-->

	<script th:src="@{/airent/plugins/jquery/jquery.min.js}"></script>
	<script th:src="@{/airent/plugins/jquery-ui-1.12.1.custom/jquery-ui.min.js}"></script>
	<script th:src="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/js/plugins/piexif.min.js}"></script>
	<script th:src="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/js/plugins/sortable.min.js}"></script>
	<script th:src="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/js/plugins/purify.min.js}"></script>
	<script th:src="@{/airent/plugins/bootstrap/bootstrap-4.4.1-dist/js/bootstrap.bundle.min.js}"></script>
	<script th:src="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/js/fileinput.min.js}"></script>
	<script th:src="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/js/locales/LANG.js}"></script>
	<script th:src="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/js/locales/zh.js}" type="text/javascript"></script>
	<script th:src="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/themes/fas/theme.min.js}" type="text/javascript"></script>
	<script th:src="@{/airent/plugins/other/kartik-v-bootstrap-fileinput-ca58fbf/themes/explorer-fas/theme.min.js}" type="text/javascript"></script>
	<script th:src="@{/airent/plugins/bootstrap/bootstrap-4.4.1-dist/js/bootstrap.min.js}"></script>
	<script  th:src="@{/airent/js/vue.js}"></script>
		<script th:inline="javascript">

			function yesUpdate(id) {
				var url=[[@{/house/yesUpdate}]]+"?hid="+id;
				window.location.href=url;
			}
			function noUpdate(id) {
				var url=[[@{/house/noUpdate}]]+"?hid="+id;
				window.location.href=url;
			}
			function go(num) {
				var url=[[@{/house/examine}]]+"?pageNow="+num+"&examine=${examine}";
				location.href = url;
			}
		</script>

		<!-- Graphs -->
		<script type="text/javascript" th:src="@{/asserts/js/Chart.min.js}" ></script>
		<script>
			var ctx = document.getElementById("myChart");
			var myChart = new Chart(ctx, {
				type: 'line',
				data: {
					labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
					datasets: [{
						data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
						lineTension: 0,
						backgroundColor: 'transparent',
						borderColor: '#007bff',
						borderWidth: 4,
						pointBackgroundColor: '#007bff'
					}]
				},
				options: {
					scales: {
						yAxes: [{
							ticks: {
								beginAtZero: false
							}
						}]
					},
					legend: {
						display: false,
					}
				}
			});
		</script>

	</body>

</html>